home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 014 / sortf.arc / SORTF.DOC next >
Encoding:
Text File  |  1984-11-24  |  1.5 KB  |  49 lines

  1.  
  2.  
  3. SORTF Command
  4. -------------
  5.  
  6. Purpose:   This command reads data from an ASCII file, sorts the
  7.        records, and writes the data to another file.
  8.  
  9. Format:    SORTF [d:][path]fname[.ext] [d:][path]fname[.ext] [/R][/+nnn]
  10.  
  11. Remarks:   Records read from the input file ending with a carriage
  12.        return and line feed are considered logical records and may
  13.        be up to 255 characters in length.
  14.  
  15.        The records are sorted into ascending ASCII character order
  16.        unless /R is supplied to reverse the order.
  17.  
  18.        The key is taken from the first character position, unless
  19.        the /+ operand is used to specify the location of the key
  20.        within the records. The position may be a value from one
  21.        to 255. The first 12 characters at that position are used
  22.        as the record key.
  23.  
  24.        For example, to sort a file in descending order with the
  25.        keys in position 10:
  26.  
  27.         SORTF TEST.DAT TEST.SRT /R/+10
  28.  
  29.        Depending on the amount of memory available, up to 40000
  30.        records, or a file of 16-Mb, may be sorted.
  31.  
  32.        The advantages of using SORTF instead of the SORT filter are:
  33.         - files larger than 63K may be sorted
  34.         - less time is required
  35.  
  36.        For best results, place the input file on the fastest
  37.        available drive, e.g. RAM disk.
  38.  
  39. Notes:       Written for the IBM PC using DOS 2.0 or later,
  40.        by Vernon Buerg. For public domain use.
  41.  
  42.        Version 1.4, June 6, 1984.
  43.  
  44. 
  45.  
  46. 
  47. 
  48.  the IBM PC using DOS 2.0 or later,
  49.        by Vernon Buerg. For public domain use.
  50.  
  51.        Version 1.4, June 6, 1984